package com.xpec.c4.db.model.basic;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import org.hibernate.annotations.GenericGenerator;

@MappedSuperclass
public class BasicGameModel extends BasicModel{
	
	/**機台狀態 - 空位**/
	public static final int EMPTY =0;
	
	/**機台狀態 - 有人**/
	public static final int PEOPLE = 1;
	
	/**機台狀態 - 保留**/
	public static final int KEEP = 2;
	
	/**機台狀態 - 離線保留**/
	public static final int OFFLINE_KEEP = 3;
	
	/**機台狀態 - 離線掛機**/
	public static final int OFFLINE_KEEP_SPIN = 4;
	
	/**機台狀態 - 錯誤**/
	public static final int ERROR = -1;
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2254021939609515686L;
	/**
	 * 数据库ID
	 */
	protected String db_id;
	
	/**
	 * @return the db_id
	 */
	@Id
	@GeneratedValue(generator="system-uuid")
	@GenericGenerator(name="system-uuid",strategy="uuid")
	public String getDb_id() {
		return db_id;
	}

	/**
	 * @param db_id the db_id to set
	 */
	public void setDb_id(String db_id) {
		this.db_id = db_id;
	}


}
